﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for clsChiTietBT
/// </summary>
public class clsChiTietBT
{
    DataClassesDataContext chitietbtDC = new DataClassesDataContext();
    //QLDETHIDataContext chitietbtDC = new QLDETHIDataContext();
	public clsChiTietBT()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    private string MaCH;

    public string MaCH1
    {
        get { return MaCH; }
        set { MaCH = value; }
    }
    private string MaBT;

    public string MaBT1
    {
        get { return MaBT; }
        set { MaBT = value; }
    }
    private string Traloi;

    public string Traloi1
    {
        get { return Traloi; }
        set { Traloi = value; }
    }



    public void CapnhatCTBT(string mabt, string mach, string traloi)
    {
        tbl_CHITIETBAITHI ctbt = new tbl_CHITIETBAITHI();
        ctbt.MaBT = mabt;
        ctbt.MaCH = mach;
        ctbt.Traloi = traloi;
        chitietbtDC.tbl_CHITIETBAITHIs.InsertOnSubmit(ctbt);
        chitietbtDC.SubmitChanges();
    }

}
